#!/usr/bin/env node


class Bomb{
  constructor(num){
  this.#num=num;
  }


  start(){
  console.log(`${num}将要于3秒后爆炸`);
  this.#time=setTimeout(()=>{
    console.log(`${num}爆炸了`);
  },3000)
  }

  clear(){
    console.log(`${num}已解除`);
    clearTimeout(#time);
}

let b1=Bomb(b1);
let b2=Bomb(b2);

b1.start();
b2.start(d);

setTimeout(()=>{
  b2.clear();
  
})
